package com.wsm.common.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author ：wangshimin
 * @date ：Created in 2020-10-29 下午 05:04
 * @description：入参
 * @version: 1.0
 */
@Data
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "测试入参")
public class DtoRequest implements Serializable {

    @NotBlank(message = "request不能为空")
    @ApiModelProperty(value = "request参数", required = true)
    private String request;

    @NotNull(message = "id不能为空")
    @ApiModelProperty(value = "id参数", required = true)
    private Integer id;
}
